import WConio

old_setting = WConio.gettextinfo()[4] & 0x00FF      #Store current attribute settings
WConio.clrscr()                                     #Clear the screen
place = 1

def display():
    WConio.gotoxy(5,5)
    WConio.cputs("Memory Sprint Hacker\r\n")
    print                                           #Print a blank line
    print "K for for user overtake, l for cpu overtake. J resets"
    print 'Press Q to Quit'

display()


while True:
    key = WConio.getkey()
    if key == 'k':
        key = None
        place = place -1
        print place
    elif key == 'l':
        key = None
        place = place + 1
        print place
    elif key == 'j':
        place = 1
        print place
    elif key == 'q':
        break
    else:
        pass
